<?php
/**
 * Created by phpstorm.
 * User: WML
 * Date: 2019/8/5 0005
 * Time: 17:19
 */
namespace app\index\controller;
use think\Controller;
use think\facade\Session;
class Allow extends Controller
{
    public function initialize()
    {
        if(!Session::get("user_id")) $this->error("请先登录~~",'/index/login/index');
    }
}